package com.csu.system.service.impl;/*
 *
 * Author: Tianyu
 * Date: 2022/9/29 16:07:53
 */

import com.csu.system.domain.FaultInfo;
import com.csu.system.mapper.FaultInfoMapper;
import com.csu.system.service.FaultInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class FaultInfoServiceImpl implements FaultInfoService{

    @Autowired
    private FaultInfoMapper faultInfoMapper;

    @Override
    public List<FaultInfo> selectAllFaultInfo(int slotCnt) {
        return faultInfoMapper.selectCurFaultInfo(slotCnt);
    }

    @Override
    public FaultInfo selectOneFaultInfo(int slotId) {
        return faultInfoMapper.selectOneFaultInfo(slotId);
    }

    @Override
    public List<FaultInfo> selectAllSlotInfo(int slotCnt) {
        return faultInfoMapper.selectAllSlotInfo(slotCnt);
    }

    @Override
    public FaultInfo selectOneSlotInfo(int slotId) {
        return faultInfoMapper.selectOneSlotInfo(slotId);
    }

    @Override
    public List<String> selectVolList(int slotId) {
        return faultInfoMapper.selectVolList(slotId);
    }
}
